/**
 * Created by liuhe on 2016/12/16.
 */
'use strict';

import * as mongoose from 'mongoose';
//申明 schema
let BusinessConfigSchema = new mongoose.Schema({
    siteInfo: {
        type: mongoose.Schema.Types.ObjectId,
        required: true,
        ref: 'GlobalSetup'
    }, //外链到用户信息
    editedInPC:{
        type:Boolean,
        required:true,
        default:false
    }//是否在pc端编辑过，若编辑过 true 不可以进行手机建站
});

export default mongoose.model('BusinessConfig', BusinessConfigSchema);
